package com.hooya.fa.eu.biz.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.hooya.fa.eu.api.bo.stk.HistoryBelongsBO;
import com.hooya.fa.eu.biz.dao.entity.TempKcjlDaily;
import com.hooya.fa.eu.biz.dao.entity.TempPkpy;
import com.hooya.fa.eu.biz.dao.mapper.TempKcjlDailyMapper;
import com.hooya.fa.eu.biz.dao.mapper.TempMapper;
import com.hooya.fa.eu.biz.dao.mapper.stk.TempPkpyMapper;
import com.hooya.fa.eu.biz.dao.mapper.stk.TempXsjlMapper;
import com.hooya.fa.eu.biz.service.TempRelationService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @Description 1
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2024/1/29
 * @Version 1.0.0
 */
@Slf4j
@Service
@DS("fa_eu")
@AllArgsConstructor
public class TempRelationServiceImpl implements TempRelationService {

    private final TempKcjlDailyMapper tempKcjlDailyMapper;

    private final TempMapper tempMapper;

    private final TempPkpyMapper tempPkpyMapper;

    private final TempXsjlMapper tempXsjlMapper;


    @Override
    public List<TempKcjlDaily> getOpeningInventory(String date, String place) {
        return tempKcjlDailyMapper.getOpeningInventory(date, place);
    }

	@Override
    public List<HistoryBelongsBO> getHistoryJcZyBelong() {
        return tempMapper.getHistoryJcZyBelong();
    }

    @Override
    public List<HistoryBelongsBO> getTempThBelongs() {
        return tempMapper.getTempThBelongs();
    }

    @Override
    public List<TempKcjlDaily> getKcjlListByDate(String date) {
        return tempKcjlDailyMapper.getListByDate(date);
    }

    @Override
    public List<TempPkpy> getPkpyListByDate(String startDate, String endDate) {
        return tempPkpyMapper.getPkpyListByDate(startDate, endDate);
    }

    @Override
    public List<String> getXsMmSheetNumberListByDate(String startDate, String endDate) {
        return tempXsjlMapper.getXsMmSheetNumberListByDate(startDate, endDate);
    }

    @Override
    public String getBelongsByCpbhSl(String cpbh, int sl, String hthm) {
        return tempPkpyMapper.getBelongsByCpbhSl(cpbh, sl, hthm);
    }
}
